package com.aiju.cash.ui.discount;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.aiju.base.activity.BaseTitleActivity;
import com.aiju.cash.R;

/**
 * @author: 佐为
 * @date: 2017-05-10 09:29
 * @version: V1.0
 * @Description: 优惠列表
 */
public class DiscountActivity extends BaseTitleActivity implements View.OnClickListener {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_discount_list);

        setCenterTitle("优惠折扣");

        findViewById(R.id.discount_jianjia).setOnClickListener(this);
        findViewById(R.id.discount_zhekou).setOnClickListener(this);
        findViewById(R.id.discount_manjian).setOnClickListener(this);
        findViewById(R.id.discount_manzhe).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.discount_jianjia:
                Intent intent = new Intent(this, DiscountWholeActivity.class);
                intent.putExtra("title", "整单减价");
                startActivity(intent);
                break;
            case R.id.discount_zhekou:
                Intent intent2 = new Intent(this, DiscountWholeActivity.class);
                intent2.putExtra("title", "整单折扣");
                startActivity(intent2);
                break;
            case R.id.discount_manjian:
                Intent intent3 = new Intent(this, DiscountFullActivity.class);
                intent3.putExtra("title", "满减");
                startActivity(intent3);
                break;
            case R.id.discount_manzhe:
                Intent intent4 = new Intent(this, DiscountFullActivity.class);
                intent4.putExtra("title", "满折");
                startActivity(intent4);
                break;
        }
    }

}
